//
//  ClassesCollectionViewCell.m
//  UI14_homework(礼物说发现->攻略页面)
//
//  Created by Hanlingyu on 16/8/2.
//  Copyright © 2016年 ltq. All rights reserved.
//

#import "ClassesCollectionViewCell.h"

@implementation ClassesCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _backgroundImageView = [[UIImageView alloc] initWithFrame:self.contentView.bounds];
        _backgroundImageView.image = [UIImage imageNamed:@"1.jpg"];
        [self.contentView addSubview:_backgroundImageView];
        
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, CGRectGetHeight(self.contentView.bounds) / 4, CGRectGetWidth(self.contentView.bounds), CGRectGetHeight(self.contentView.bounds) / 4)];
        _titleLabel.text = @"萌萌哒";
        _titleLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_titleLabel];
        
        _detailLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, CGRectGetHeight(self.contentView.bounds) / 2, CGRectGetWidth(self.contentView.bounds), CGRectGetHeight(self.contentView.bounds) / 4)];
        _detailLabel.text = @"萌到让你迈不开腿";
        _detailLabel.textColor = [UIColor grayColor];
        _detailLabel.font = [UIFont systemFontOfSize:9];
        [self.contentView addSubview:_detailLabel];

    }
    
    return self;
}

@end
